package club.cearnach.api.service;

import club.cearnach.entity.Director;

import java.util.HashSet;
import java.util.Optional;

/**
 * @author 阮胜
 * @date 2018/5/12 17:03
 */
public interface IDirectorService {
    Director save(Director director);

    Director saveAndFlush(Director director);

    Optional<Director> findByName(String name);

    HashSet<Director> saveMany(String directors);
    Optional<Director> findByPersonId(Integer id);

    void delete(Integer id);
}
